package com.skyolder.milkbee.repository;

import com.skyolder.milkbee.domain.Questionnaire;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.*;

import java.util.List;

/**
 * Spring Data JPA repository for the Questionnaire entity.
 */
@SuppressWarnings("unused")
public interface QuestionnaireRepository extends JpaRepository<Questionnaire,Long> {

	Page<Questionnaire> findByUserId(Long userId, Pageable pageable);
	Page<Questionnaire> findByCategoryId(Long categoryId, Pageable pageable);

}
